// subpages0/teamRedpacket/teamRecord/teamRecord.js
var app = getApp();
Page({
  data: {

  },
  onLoad: function (e) {
    var that = this;
    if(e&&e.id){
      that.setData({
        id:e.id
      })
    };
    that.requestRecordDetail();
  },
  requestRecordDetail: function () {
    var that = this;
    var data = {
      map: 'applet_redbag_group_member',
      groupId: that.data.id
    };
    wx.showLoading({
      title: '加载中',
      mask: true,
      time: 100000
    })
    wx.request({
      url: app.globalData.requestUrl,
      data: data,
      success: function (res) {
        console.log(res.data);
        if (res.data.ec == 200) {
          that.setData({
            detailInfo: res.data.data
          })
        } else {
          console.log(res.data)
          app.errorTip(that, res.data.em, 2000);
        }
      },
      complete: function () {
        wx.hideLoading();
      }
    });
  },
})